import { $t } from "@/plugins/i18n";

export default {
  path: "/qingdao",
  redirect: "/qingdao/pfmea_file_manage",
  meta: {
    icon: "iconoir:bin-plus-in",
    // showLink: false,
    title: $t("customize.qingdao"),
    rank: 4
  },
  children: [
    {
      path: "/qingdao/as",
      meta: {
        title: $t("customize.as"),
        keepAlive: true
      },
      redirect: "/qingdao/as/pfmea_file_manage",
      children: [
        {
          path: "/qingdao/as/pfmea_file_manage",
          name: "qd_as_pfmea_file_manage",
          component: () => import("@/views/pfmea_file_manage/index.vue"),
          meta: {
            base: "青岛",
            base_zone: "装配",
            title: $t("customize.qd_as_pfmea_file_manage"),
            showParent: true,
            roles: ["admin"]
          }
        }
      ]
    },
    {
      path: "/qingdao/cs",
      meta: {
        title: $t("customize.cs"),
        keepAlive: true
      },
      redirect: "/qingdao/cs/pfmea_file_manage",
      children: [
        {
          path: "/qingdao/cs/pfmea_file_manage",
          name: "qd_cs_pfmea_file_manage",
          component: () => import("@/views/pfmea_file_manage/index.vue"),
          meta: {
            base: "青岛",
            base_zone: "曲轴",
            title: $t("customize.qd_cs_pfmea_file_manage"),
            showParent: true,
            roles: ["admin"]
          }
        }
      ]
    },
    {
      path: "/qingdao/cb",
      meta: {
        title: $t("customize.cb"),
        keepAlive: true
      },
      redirect: "/qingdao/cb/pfmea_file_manage",
      children: [
        {
          path: "/qingdao/cb/pfmea_file_manage",
          name: "qd_cb_pfmea_file_manage",
          component: () => import("@/views/pfmea_file_manage/index.vue"),
          meta: {
            base: "青岛",
            base_zone: "缸体",
            title: $t("customize.qd_cb_pfmea_file_manage"),
            showParent: true,
            roles: ["admin"]
          }
        }
      ]
    },
    {
      path: "/qingdao/ch",
      meta: {
        title: $t("customize.ch"),
        keepAlive: true
      },
      redirect: "/qingdao/ch/pfmea_file_manage",
      children: [
        {
          path: "/qingdao/ch/pfmea_file_manage",
          name: "qd_ch_pfmea_file_manage",
          component: () => import("@/views/pfmea_file_manage/index.vue"),
          meta: {
            base: "青岛",
            base_zone: "缸盖",
            title: $t("customize.qd_ch_pfmea_file_manage"),
            showParent: true,
            roles: ["admin"]
          }
        }
      ]
    }
  ]
} satisfies RouteConfigsTable;
